package com.fh.modules.oms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fh.common.query.QueryRuleEnum;
import com.fh.common.query.annotation.QueryWrapperRule;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 购物车
 * @author： code generator
 * @date：   2019-09-28
 * @version： V1.0
 */
@Data
@TableName("oms_shopping_car")
public class OmsShoppingCar implements Serializable {
    private static final long serialVersionUID = 1L;
    
	/**id*/
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**productId*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer productId;
	/**productSkuId*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer productSkuId;
	/**memberId*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer memberId;
	/**购买数量*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer quantity=1;
	/**添加到购物车的价格*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private java.math.BigDecimal addPrice;
	/**商品已选规格属性json*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String propertyList;
	/**删除状态（0，正常，1已删除）*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private Integer delFlag;
	/**创建人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**更新人*/
	@QueryWrapperRule(rule=QueryRuleEnum.EQ)
	private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
}
